<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
[#include "/admin/include/head.htm"]
    <style type="">
        .imagePreview {
            background-color: red;
            color: white;
        }
    </style>
    <script type="text/javascript">
        var grid;
        function f_export_loan(){
            $("#exportForm").submit();
        }
        function f_verify(id){
            top.f_addTab(null, '提现审核', base+'/admin/cash/'+id+'.aspx');
        }
        $(function(){
            grid = $("#maingrid").ligerGrid({
                columns: [
                    {hide: true, name: 'path'},
                    {display: '用户id', name: 'user_id', align: 'center', width: 200 },
                    {display: '用户名', name: 'u_user_name', align: 'center', width: 100 },
                    {display: '真实姓名', name: 'real_name', align: 'center', width: 100 },
                    {display: '提现ID', name: 'id', align: 'center', width: 100 },
                    {display: '卡号', name: 'crad_no', align: 'center', width: 100 },
                    {display: '提现银行', name: 'bank', align: 'center', width: 100 },
                    {display: '分行', name: 'branch', align: 'center', width: 100 },
                    {display: '提现总额', name: 'total', align: 'center', width: 100 },
                    {display: '操作', name: 'status', align: 'center', width: 100,
                        render: function(row){
                            if(row.status==0){
                                    var html = '<input value="审核" type="button" onclick="f_verify('+row.id+')">';
                                    return html;
                            }else if(row.status==1){
                                return "提现成功";
                            }else{
                                return "审核未通过";
                            }
                        }
                    },
                    {display: '申请时间', name: 'addtime', align: 'center', width: 100,isdate:true }
                ],  pageSize:20, url: 'queryData.aspx',toolbar: {}, width: '100%', height:'100%', enabledSort: true
            });

            $(".l-toolbar").ligerToolBar({ items: [
                { text: '导出', click: f_export_loan }
            ]
            });
            //绑定搜索按钮
            LG.search(grid);
        });
    </script>
</head>
<body style="padding:10px; overflow:hidden;">
<div id="functions">
    <div class="clearfix">
        <div style="float:left;">
            <form id="exportForm" method="post" action="${path}/admin/cash/exportCashList.aspx">
                 <span>
					审核状态：[@u.select list={"":"全部","0":"申请中","1":"通过","-1":"失败"}
                 name="status" value="${(status)!'0'}" /]
			</span>
            <span>
                用户ID：<input type="text" onkeyup="value=value.replace(/[^\d]/g,'')" name="userId" />
			</span>
            <span>
                用户名：<input type="text" name="userName" />
			</span>
             <span>
                 订单号：<input type="text" name="trade_no"/>
			</span>


             <span>
					状态： [@u.select list={"":"全部","0":"未付款","1":"充值成功","-1":"充值失败"}
             name="status" value="${(status)!''}" /]
			</span>
                日期：<input type="text" id="begin_date" name="begin_date"
                          class="formText WdatePicker {dateFmt:'yyyy-MM-dd'}" />
                -
                <input type="text" id="endDate" name="end_date"
                       class="formText WdatePicker {dateFmt:'yyyy-MM-dd'}" />
                <input type="button" class="button" value="搜索" id="search"/>
                <a href="#" id="search_btn_reset" face="Wingdings 3">清除本次搜索</a>

            </form>
        </div>
    </div>
</div>

<div id="maingrid" style="margin:0; padding:0"></div>
</body>
</html>